x86emul: introduce SrcImm16
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2016 10:22:14 +0000 (12:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2016 10:22:14 +0000 (12:22 +0200)
commit1f848de6f229e2b3a5aa84399d2639a958a6e945
tree775f03a5c7d297509b687ceb5599321b584c5c81
parentd9a40cea32faf6cf696f42537e95a4759a2924d0
x86emul: introduce SrcImm16

... and use it for RET, LRET, and ENTER processing to limit the amount
of "manual" insn bytes fetching. Note that for the RET and LRET paths
the change utilizes that SrcImplicit (aka SrcNone) table entries leave
src.val as zero.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c